class Word(str):
    def __init__(self,str1=''):
        self.str1=str1
        self.len = 0
        k=str1.find(' ')
        if k != -1:
            self.str1=self.str1[:k]
            self.len = len(self.str1)
        else :
            self.len = len(self.str1)
    def __lt__(self,other):
        return self.len<other.len

    def __le__(self,other):
        return self.len<=other.len

    def __eq__(self,other):
        return self.len == other.len

    def __ne__(self,other):
        return self.len != other.len

    def __gt__(self,other):
        return self.len > other.len

    def __ge__(self,other):
        return self.len >= other.len


a=Word('  abc iov  qasd')
b=Word('abcd')
